package com.mdlib.helper.module.send.order.activitys;

import android.content.Context;
import android.content.Intent;

import com.ljlib.core.base.BaseCommonActivity;
import com.ljlib.core.base.BaseFragment;
import com.mdlib.helper.model.entity.OneKeyServiceEntity;
import com.mdlib.helper.module.send.order.fragments.AgencyFragment;
import com.mdlib.helper.ui.UIHelper;

/**
 * 作者：HQY on 16/12/13 16:04
 * 邮箱：hqy_xz@126.com
 */

public class AegcyActivity extends BaseCommonActivity {

    public static Intent newIntent(Context context, OneKeyServiceEntity serviceEntity, String type) {
        Intent intent = new Intent(context, AegcyActivity.class);
        intent.putExtra(UIHelper.AGENCY, serviceEntity);
        intent.putExtra(UIHelper.AGENCY_TYPE, type);
        return intent;
    }

    @Override
    protected BaseFragment getFirstFragment() {
        return AgencyFragment.newInstance((OneKeyServiceEntity) getIntent().getExtras().getSerializable(UIHelper.AGENCY), getIntent().getExtras().getString(UIHelper.AGENCY_TYPE));
    }
}
